/**
 * @Project Name:studio-elasticsearchs
 * @Package Name:com.leimingtech.studio.studioelasticsearchs.util
 * @Since JDK 1.8
 */

package com.leimingtech.studio.elasticsearch.util;

import cn.hutool.core.lang.Snowflake;

/**
 * @Description: IDUtils
 * @Author 胡松 hoofungson@163.com
 * @Date 2019-11-13 18:04
 * @Version V1.0
 */
public class IDUtils {

    private static final Snowflake snowflake = new Snowflake(23, 26);

    private IDUtils() {
    }

    /**
     * 获取唯一ID
     *
     * @return Long
     **/
    public static Long getId() {
        return snowflake.nextId();
    }
}
